package org.wisdom.data.jpa.support.entity;

import javax.persistence.Entity;
import javax.persistence.Id;

import org.springframework.core.annotation.Order;
import org.wisdom.data.jpa.entity.ObjectEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 编码生成器实体
 *
 * @author zhangzhiyan
 * @date 2022/05/06 10:32
 **/
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
public class CodeGenerator extends ObjectEntity {
    @Id
    @Order(1)
    private String genName;
    @Order(2)
    private long genValue;
}
